package com.gl.portal.system.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.gl.framework.web.domain.IdEntity;

/**
 * 角色和部门关联表实体
 */
@Entity
@Table(name = "sys_role_dept")
public class SysRoleDept extends IdEntity {
	/**
	 * 角色ID
	 */
	private Long roleId;

	/**
	 * 部门ID
	 */
	private Long deptId;

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public Long getDeptId() {
		return deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	@Override
	public String toString() {
		return "SysRoleDept [id=" + id + ", roleId=" + roleId + ", deptId=" + deptId + "]";
	}

}
